/*
 * Powered By 
 * Since 2010 - 2016
 */

package com.rf.business.service;

import java.util.List;
import java.util.Map;

import com.rf.sys.utils.PageUtils;
import com.rf.business.model.Declaration;

public interface DeclarationService{
	
	/**
	 * 根据id获取数据
	 * @param declarationId
	 * @return Declaration
	 */
	public Declaration getDeclarationByID(String id
) throws Exception;
	
	/**
	 * 根据Declaration获取数据
	 * @param Declaration
	 * @return List<Declaration>
	 */
	public List<Declaration> getDeclaration(Declaration declaration) throws Exception;
	
	/**
	 * 获取所有数据
	 * @param 
	 * @return List<Declaration>
	 */
	public List<Declaration> getDeclaration() throws Exception;
	
	/**
	 * 保存信息
	 * @param Declaration
	 * @return
	 */
	public void addDeclaration(Declaration declaration) throws Exception;
	
	/**
	 * 修改数据
	 * @param Declaration
	 * @return
	 */
	public void updateDeclaration(Declaration declaration) throws Exception;
	
	/**
	 * 删除数据
	 * @param declarationId
	 * @return
	 */
	public void deleteDeclaration(String id
) throws Exception;
	
	/**
	 * 获取数据分页
	 * @param Declaration
	 * @param pageUtils
	 * @param uList
	 * @return Map
	 */
	public Map getDeclarationPage(Declaration declaration,PageUtils pageUtils,List<String> uList) throws Exception;
}
